package com.xdemo.personal.communityclient;

import com.xdemo.core.MessageType;
import com.xdemo.core.msg.TestExchangeMessage;
import com.xdemo.msg.BaseMessage;
import com.xdemo.msg.IMessageRecognizer;

/**
 * @author Administrator
 *
 */
public class CommunityMessageRecognizer implements IMessageRecognizer<Integer,Integer> {
	
	@Override
	public BaseMessage createMessage(Integer type) {
		switch(type) {
		case MessageType.TestExchange:
			return new TestExchangeMessage();
		}
		return null;
	}

}
